home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 124
/
124.d81
/
geos to seq
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
4KB
|
139 lines
0 ifpeek(49153)=149thenprint"[147]":goto7: rem:see line 5000
1 poke53280,0:poke53281,0:printchr$(14):print"[147]"
2 print" [158][176][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][174]"
3 print" [171] [195][207][206][214][197][210][212] [199]eo[212][197][216][212] [212][207][160][211][197][209].[198][201][204][197] [179]"
4 print" [173][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][189]":forn=1to11:print:next
6 ifa=0thena=1:load"conversion code",8,1
7 poke52,96:poke56,96:f$="temp01,s":y=52992:forx=1tolen(f$):v=asc(mid$(f$,x,1))
8 pokey,v:y=y+1:next:goto190
9 print"[206]ame for eventual converted file":print"(max.10 characters)":inputc$
10 iflen(c$)>10thenc$=left$(c$,10)
11 g$=c$:c$=c$+",s,w"
12 y=53008:forx=1tolen(c$):v=asc(mid$(c$,x,1)):pokey,v:y=y+1:next:poke2,len(c$)
13 print"[196]o you wish to use drive 9 when
14 [133]"writing the converted file (y/n)";s$
15 [139]s$[178]"y"[167]dv[178]9:[151]49533,9
16 [139]s$[179][177]"y"[167]dv[178]8:[151]49533,8
17 [139]dv[178]9[167][153]"(NULL)lease place a disk in drive 9 and
18 ifdv=9thenprint"type any key to continue":poke198,0:wait198,1
20 goto305
190 print"[147][208]lace source ([199][197][207][211]) disk in drive 8"
200 print"[212]ype return[146] when ready..."
210 geta$:ifa$<>chr$(13)thengosub970:goto210
220 poke53280,0
292 gosub680
294 forx=56328to56331:pokex,0:next
300 poke56328,1
301 f$="":forf=1tolen(n$)
302 ifasc(mid$(n$,f,1))>192thenh$=chr$(asc(mid$(n$,f,1))-96)
303 ifasc(mid$(n$,f,1))<192thenh$=chr$(asc(mid$(n$,f,1)))
304 f$=f$+h$:next:print"[147]":goto9
305 iff$=g$anddv=8thenprint"[147][196]ifferent name required for
306 [139]f$[178]g$[175]dv[178]8[167][153]"converted file. (NULL)ry again!":[153]:[137]9
308 f$[178]f$[170]",u,r"
310 [159]15,8,15:[159]8,8,0,f$:[132]15,en,eb$,et,es
320 [139]en[179][177]0[167][160]8:[160]15:[153]"load";[166]20[171][195](eb$)[173]2)eb$:n$[178]"":[137]290
322 [153]"load"[166]16[171][195](f$)[173]2)"loading "[170]f$
324 s$[178]"str$(NULL)right$(NULL)valclose(NULL)val(NULL)(NULL)closepeek(NULL)(NULL)(NULL) - str$(NULL)close(NULL)(NULL)(NULL)closestr$right$(NULL)(NULL)(NULL)(NULL)peek
325 print""spc(20-len(s$)/2)s$
329 d=30:dimr(d,1):fort=1tod
330 get#8,r$:ifr$=""thentt=t:t=d:close8:close15:goto336
331 r(t,0)=asc(r$)
332 get#8,r$:ifr$=""thenr$=chr$(0)
333 r(t,1)=asc(r$)
334 next
336 rem:
340 s$="writing new pages":print""spc(20-len(s$)/2)s$:t2=1
370 forf=1tott-1:t1$="temp":t2$=right$(str$(t2),len(str$(t2))-1)
371 iflen(t2$)=1thent2$="0"+t2$
372 t3$=t1$+t2$
373 open4,8,4,t3$+",s,w":close4:t2=t2+1:ift2=ttthen376
374 next
376 s$="giving them directions":print""spc(20-len(s$)/2)s$
377 open15,8,15,"i0":open2,8,2,"#":t=18:s=1:n=0:t2=1
378 forf=1tott-1:t1$="temp":t2$=right$(str$(t2),len(str$(t2))-1)
379 iflen(t2$)=1thent2$="0"+t2$
380 t3$=t1$+t2$
382 print#15,"u1:2 0"+str$(t)+str$(s)
384 get#2,a$:tn=asc(a$+chr$(0)):get#2,a$:sn=asc(a$+chr$(0))
385 ifn>7thenn=0:t=tn:s=sn:goto382
386 print#15,"b-p:2,"+str$(n*32+2)
388 get#2,a$:ft=asc(a$+chr$(0)):ifft<>129thenn=n+1:goto385
390 print#15,"b-p:2,"+str$(n*32+5):d$=""
392 get#2,a$:ifa$<>chr$(160)andlen(d$)<16thend$=d$+a$:goto392
393 ifd$<>t3$thenn=n+1:goto385
394 ifd$=t3$thenprint#15,"b-p:2,"+str$(n*32+3):print#2,chr$(r(f,0));
395 print#15,"u2";2;0;t;s
396 ifd$=t3$thenprint#15,"b-p:2,"+str$(n*32+4):print#2,chr$(r(f,1));
397 print#15,"u2";2;0;t;s
398 n=n+1:t2=t2+1:ift2=ttthenclose2:close15:goto403
402 next
403 print:s$="[212]ranslating [199][197][207][211]":printspc(20-len(s$)/2)s$:print
405 poke38,8:sys49152
406 gosub477
410 h=peek(56331):y=h:gosub450:h=p
411 m=peek(56330):y=m:gosub450:m=p
412 s=peek(56329):y=s:gosub450:s=p
413 t=peek(56328):y=t:gosub450:t=p
420 print"[195]onversion completed in"
430 printh" hours"
431 printm" minutes
432 z$[178][201]([196](t),[195]([196](t))[171]1)
433 s$[178][196](s)[170]"."[170]z$:[153]s$" seconds"
434 [153]"(NULL)our chr$val(NULL)(NULL) source disk will require
435 print"validation once you return to the
436 [153]"chr$val(NULL)(NULL) environment."
440 [128]:[143] dmh 1994
450 p[178][181](y[173]16)[172]10[170](y[175]15):[142]
477 [159]15,8,15,"i0":[159]2,8,2,"#":t[178]18:s[178]1:n[178]0:t2[178]1
478 [129]f[178]1[164]tt[171]1:t1$[178]"temp":t2$[178][201]([196](t2),[195]([196](t2))[171]1)
479 [139][195](t2$)[178]1[167]t2$[178]"0"[170]t2$
480 t3$[178]t1$[170]t2$
482 [152]15,"u1:2 0"[170][196](t)[170][196](s)
484 [161]#2,a$:tn[178][198](a$[170][199](0)):[161]#2,a$:sn[178][198](a$[170][199](0))
485 [139]n[177]7[167]n[178]0:t[178]tn:s[178]sn:[137]482
486 [152]15,"b-p:2,"[170][196](n[172]32[170]2)
488 [161]#2,a$:ft[178][198](a$[170][199](0)):[139]ft[179][177]129[167]n[178]n[170]1:[137]485
490 [152]15,"b-p:2,"[170][196](n[172]32[170]5):d$[178]""
492 [161]#2,a$:[139]a$[179][177][199](160)[175][195](d$)[179]16[167]d$[178]d$[170]a$:[137]492
493 [139]d$[179][177]t3$[167]n[178]n[170]1:[137]485
494 [139]d$[178]t3$[167][152]15,"b-p:2,"[170][196](n[172]32[170]2):[152]2,[199](0);
495 [152]15,"u2";2;0;t;s
498 n[178]n[170]1:t2[178]t2[170]1:[139]t2[178]tt[167][160]2:[160]15:[142]
499 [130]
680 [159]15,8,15,"i0":[159]2,8,2,"#":x[178]0:m[178]0:t[178]18:s[178]1:n[178]0
690 [153]"load(NULL)he (NULL)(NULL)(NULL) files on this disk are:"
700 [152]15,"u1:2 0"[170][196](t)[170][196](s)
710 [161]#2,a$:tn[178][198](a$[170][199](0)):[161]#2,a$:sn[178][198](a$[170][199](0))
720 [152]15,"b-p:2,"[170][196](n[172]32[170]2)
730 [161]#2,a$:ft[178][198](a$[170][199](0)):[139]ft[179][177]131[175]ft[179][177]195[167]n[178]n[170]1:[137]810
770 [152]15,"b-p:2,"[170][196](n[172]32[170]5):d$[178]""
780 [161]#2,a$:[139]a$[179][177][199](160)[175][195](d$)[179]16[167]d$[178]d$[170]a$:[137]780
790 x[178]x[170]1:m[178]m[170]1:[139]m[178]16[167]m[178]0:[137]840
800 [153]" "[170][199](34)[170]d$[170][199](34):n[178]n[170]1
810 [139]n[179]8[167]720
820 n[178]0:t[178]tn:s[178]sn:[139]t[179][177]0[167]700
830 [139]t[178]0[167]860
840 [153]" type returnwait to see more"
850 [153]" type _ and then returnwait to abort"
860 [139]x[178]0[167][153]" none":[137]930
870 [153]" place cursor next to name"
880 [153]" and type returnwait to load":[133]n$
890 [139]n$[178]"_"[167]n$[178]"":[137]920
900 [139]n$[179][177]""[167][160]2:[160]15:[142]
910 [139]t[179][177]0[167]690
920 [153]"load";
930 [160]2:[160]15:[153]" place another chr$val(NULL)(NULL) disk in drive"
940 [153]" type returnwait when ready or"
941 [153]" type qwait to quit program"
950 [161]a$:[139]a$[179][177][199](13)[175]a$[179][177]"q"[167][141]970:[137]950
955 [139]a$[178]"q"[167][128]
960 [151]53280,0:[137]680
970 a[178]a[170]1:[139]a[177]10[167][151]53280,2
980 [139]a[177]20[167][151]53280,0:a[178]0
990 [142]
2000 [159]15,9,15:[132]15,a,b$,c,d:[153]a,b$,c,d:[160]15
5000 [143]:programmed by doreen horne for
5001 [143]:the public domain.
5002 [143]:brisbane australia 1994